Yes,
npm run build, assuming it’s set up like the standard Obsidian sample plugin:
- Put the updated
main.tsin your plugin’s project folder, replacing the old one.- Run
npm installif `node_modules` is missing (first time or a fresh clone only).- Run
npm run build. In the sample-plugin setup this type-checks withtscand bundles with esbuild intomain.js.- Copy
main.jsand `manifest.json` (plusstyles.cssif you have one) into<vault>/.obsidian/plugins/<plugin-id>/. Skip this if the project folder already lives there.- Reload the plugin in Obsidian by toggling it off and on under Community plugins, or restart Obsidian.
You use this in both the LH and RH vaults (the code checks for
Right-Hand), so copymain.jsinto each vault’s plugin folder.
Source: Claude ○˒